import { createHashRouter } from 'react-router-dom';

import DefaultLayout from "@/layout";
import Login from "@/views/Login";
import Echarts from "@/views/Echarts";
import Home from "@/views/Home";

const router = createHashRouter([
  {
    path: '',
    element: <Login />
  },
  {
    path: "login",
    element: <Login />,
  },
  {
    path: "echarts",
    element: <Echarts />,
  },
  {
    path: "/",
    element: <DefaultLayout />,
    children: [
      {
        path: "home",
        element: <Home />,
      },
    ],
  },
]);

export default router;
